import request from '@/request/request'

// 获得热门商品
export function getHotProducts(id) {
    return request({
        url: '/system/hot-products/get?id=' + id,
        method: 'get'
    })
}

// 获得热门商品分页
export function getHotProductsPage(params) {
    return request({
        url: '/system/hot-products/page',
        method: 'post',
        data:params
    })
}
// 导出热门商品 Excel
export function exportHotProductsExcel(params) {
    return request({
        url: '/system/hot-products/export-excel',
        method: 'get',
        params,
        responseType: 'blob'
    })
}